package com.eddie.prototype.improve;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Eddie
 * @date 2022/4/29 17:58
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Sheep implements Cloneable {

    private String name;
    private int age;
    private String color;

    @Override
    public Sheep clone() {
        try {
            return (Sheep) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new AssertionError();
        }
    }
}
